﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetWaterMarkSettings()" Validate="True" />
<section data-page="config_water_mark" data-title="水印设置" data-lang="<%=ContentLang%>" data-position="<%=Config[WMSPosition]%>">
	<dl class="path1">
		<dt><span>您的位置：</span>水印设置</dt>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a href="basic.aspx?Lang=<%=ContentLang%>" target="ali-navtab">基本设置</a></li>
							<li><a href="email.aspx?Lang=<%=ContentLang%>" target="ali-navtab">邮件设置</a></li>
							<li class="ali-active"><a>水印设置</a></li>
							<li><a href="white_list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">白名单</a></li>
							<li><a href="black_list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">黑名单</a></li>
							<li><a href="keyword_filter.aspx?Lang=<%=ContentLang%>" target="ali-navtab">关键词过滤</a></li>
							<li><a href="global.aspx?Lang=<%=ContentLang%>" target="ali-navtab">全局设置</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>类型：</th>
								<td>
									<%If Convert.ToString(Config[WMSType]) == "Text"%>
										<label><input type="radio" name="Type" value="Image">图片</label>
										<label><input type="radio" name="Type" value="Text" checked="checked">文字</label>
									<%Else%>
										<label><input type="radio" name="Type" value="Image" checked="checked">图片</label>
										<label><input type="radio" name="Type" value="Text">文字</label>
									<%EndIf%>
								</td>
							</tr>
							<tr>
								<th>水印图片：</th>
								<td>
									<input type="text" name="Image" value="<%=Config[WMSImage]%>" size="55" class="ali-input"><a class="ali-button ali-uploader">浏览...</a>
									<a href="<%=Config[WMSImage]%>" target="_blank"><img src="<%=Config[WMSImage]%>" height="22" alt="水印图片"></a>
								</td>
							</tr>
							<tr>
								<th>水印文字：</th>
								<td><input type="text" name="Text" value="<%=Config[WMSText]%>" maxlength="100" class="ali-input" ></td>
							</tr>
							<tr>
								<th>字体类型：</th>
								<td><input type="text" name="FontFamily" value="<%=Config[WMSFontFamily]%>" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>字体大小：</th>
								<td><input type="text" name="FontSize" value="<%=Config[WMSFontSize]%>" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>文字颜色：</th>
								<td><input type="text" name="ForeColor" value="<%=Config[WMSForeColor]%>" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>背景颜色：</th>
								<td><input type="text" name="BackColor" value="<%=Config[WMSBackColor]%>" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>粗体：</th>
								<td>
									<%If Convert.ToBoolean(Config[WMSBold])%>
										<label><input type="radio" name="Bold" value="true" checked="checked" >是</label>
										<label><input type="radio" name="Bold" value="false">否</label>
									<%Else%>
										<label><input type="radio" name="Bold" value="true">是</label>
										<label><input type="radio" name="Bold" value="false" checked="checked">否</label>
									<%EndIf%>
								</td>
							</tr>
							<tr>
								<th>斜体：</th>
								<td>
									<%If Convert.ToBoolean(Config[WMSItalic])%>
										<label><input type="radio" name="Italic" value="true" checked="checked">是</label>
										<label><input type="radio" name="Italic" value="false">否</label>
									<%Else%>
										<label><input type="radio" name="Italic" value="true">是</label>
										<label><input type="radio" name="Italic" value="false" checked="checked">否</label>
									<%EndIf%>
								</td>
							</tr>
							<tr>
								<th>位置：</th>
								<td>
									<select name="Position">
										<option value="TopLeft">左上角</option>
										<option value="TopRight">右上角</option>
										<option value="MiddleCenter">居中</option>
										<option value="BottomLeft">左下角</option>
										<option value="BottomRight">右下角</option>
									</select>
								</td>
							</tr>
							<tr>
								<th>水平边距：</th>
								<td><input type="text" name="MarginX" value="<%=Config[WMSMarginX]%>" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>垂直边距：</th>
								<td><input type="text" name="MarginY" value="<%=Config[WMSMarginY]%>" maxlength="100" class="ali-input"></td>
							</tr>
							<tr>
								<th>透明程度：</th>
								<td><input type="text" name="Transparency" value="<%=Config[WMSTransparency]%>" maxlength="100" class="ali-input">0为全透明，1为不透明</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button><input type="hidden" name="PictureAllowedType" value="gif|jpg|jpeg|png|bmp|png"></div>
	</form>
</section>